package com.hdax.dm.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dm_order")
public class Order {

  @TableId(type = IdType.AUTO)
  private Long id;
  private String orderNo;
  private Long userId;
  private Long schedulerId;
  private Long itemId;
  private String itemName;
  private String wxTradeNo;
  private String aliTradeNo;
  //0:未支付 -1：支付超时  2：已支付
  private Long orderType = 0L;
  private Long payType = 2L;
  private Long totalCount;
  private Long area;
  private Long sourceType = 0L;
  private Long isNeedInvoice = 1L;
  private Long invoiceType;
  private String invoiceHead;
  private String invoiceNo;
  private Long isNeedInsurance;
  private Double totalAmount;
  private Double insuranceAmount = 0d;
  private LocalDateTime createdTime;
  private LocalDateTime updatedTime;


}
